<?php
/**
 * 模版引擎
 * 
 * @example     Lib_Extend_Smarty::getInstance
 * @copyright	http://www.easymvc.com
 * @author 		光哥 <439884988@qq.com>
 * @version		1.0 - 2012-06-29
 * @package		Lib
 */
if(!defined('EASYMVC')) {
	exit('Access Denied');
}
require EXTENDPATH.'Smarty-3.0.9/libs/Smarty.class.php';

/**
 * smarty 模版
 */
class Lib_Extend_Smarty extends Smarty{
    public function __construct(){
        
        $this->compile_dir = BASEPATH . Frame_Config::get("env.compile_dir");
        $this->cache_dir = BASEPATH .Frame_Config::get("env.cache_dir");
        $this->template_dir = BASEPATH.Frame_Config::get("env.tpl_dir");
		
    }
	public static function getInstance(){
		static $obj;
		if(!$obj) {
			$obj = new self();
		}
		return $obj;
	}
}